package com.scnu.common.constants;

public class ApplyConstants {
    public final static Integer PENDING=0;
    public final static Integer ACCEPTED=1;
    public final static Integer REJECTED=2;
    public final static Integer IGNORED=3;
    public final static String PENDING_TEXT="申请中";
    public final static String ACCEPTED_TEXT="已接受";
    public final static String REJECTED_TEXT="已拒绝";
    public final static String UNAPPLY_TEXT="未申请";

    public static final String ALREADY_JOIN = "您已经是该课题的成员，请勿重复申请！";
    public static String getStatusText(Integer status) {
        if (status.equals(ApplyConstants.IGNORED)||status.equals(ApplyConstants.PENDING)){
            return ApplyConstants.PENDING_TEXT;
        }
        else if (status.equals(ApplyConstants.ACCEPTED)){
            return ApplyConstants.ACCEPTED_TEXT;
        }
        else if (status.equals(ApplyConstants.REJECTED)){
            return ApplyConstants.REJECTED_TEXT;
        }
        return UNAPPLY_TEXT;
    }


}
